package com.titan.domain;

import java.io.Serializable;
import javax.persistence.*;

/**
 * Entity implementation class for Entity: Address
 *
 */
@Entity
@Table(name="Address")

public class Address implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int id;
	private String street;
	private String city;
	private String state;
	private String zip;
	
	@TableGenerator(name="ADDRESS_GENERATOR",
					table="GENERATOR_TABLE",
					pkColumnName="PRIMARY_KEY_COLUMN",
					valueColumnName="VALUE_COLUMN",
					pkColumnValue="ADDRESS_ID",
					allocationSize=5)
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="ADDRESS_GENERATOR")
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public Address() {
		super();
	}
   
}
